Skip to content

docs: accuracy fixes and UX quick wins#4

Merged
flaglint merged 2 commits into
mainfrom
docs/quick-wins
Jul 1, 2026
Merged

docs: accuracy fixes and UX quick wins#4
flaglint merged 2 commits into
mainfrom
docs/quick-wins

Conversation

@Krishan27

@Krishan27 Krishan27 commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes 3 ship-blocking accuracy bugs and 12 UX quick wins from the expert docs audit.

Accuracy fixes

  • index.md — removed "React SDKs" from the "does not detect" list (detected since v1.1.0)
  • limitations.md — corrected React SDK bullet: detected for manual review, outside auto-migration scope
  • github-actions.md — added missing version input to options table with pinning example

Sidebar improvements

  • Start Here: collapsed: false — was hidden by default, breaking new-user onboarding
  • Blog moved to bottom — was above all documentation content
  • Concepts moved before Tutorials — users need concepts before tutorials
  • Trust moved above Blog

CLI page improvements

  • scan.md — replaced incomprehensible exit-behavior prose with clean exit code table
  • configuration.md — added Type column to fields table
  • completion.md — added Next → GitHub Actions link (was dead-ending)

Consistency

  • Standardised npx flaglint@latest throughout quickstart
  • Corrected 29 wrong edit-this-page links (were pointing to wrong repo/path)

Test plan

  • Build passes: 65 pages, 0 errors
  • Start Here section open by default on first load
  • Blog at bottom of sidebar
  • Concepts before Tutorials in sidebar
  • scan.md shows exit code table
  • configuration.md Type column renders
  • completion.md Next link present

Summary by CodeRabbit

  • Documentation
    • Updated the docs navigation and sidebar order for easier access to key guides and reference pages.
    • Expanded CLI and quickstart docs with clearer usage examples, exit code guidance, configuration details, report format comparisons, and troubleshooting help.
    • Added clearer explanations of supported scope, migration limits, and how different patterns are handled.
    • Refreshed “Edit this page” links across the documentation to point to the current source location.

Krishan27 added 2 commits July 1, 2026 09:26
… report formats, exit codes, OF bindings

- Merge reference/exit-codes.md into cli/exit-codes.md: full table, per-command
  matrix, why-exit-1 explanation, CI YAML example, stability guarantee. Deleted
  the redundant reference page (sidebar update needed separately).
- Expand how-flaglint-works.md: import-verified concept with false-positive
  example, three-phase pipeline explanation, what FlagLint does not do.
- Expand troubleshooting.md: 4 items → 8 items covering 0-flags-detected,
  config-not-found, React-not-automigrated, apply-0-transformed, validate-CI-gap.
- Rewrite report-formats.md: format comparison table, when-to-use prose for each
  format, GitHub Code Scanning SARIF upload example.
- Expand configuration.md openFeatureClientBindings: what it does, example,
  multiple bindings, difference from wrappers.

Signed-off-by: Krishan Kant Sharma <krishansharma0327@gmail.com>
Fix 1/2: Remove React SDK from 'does not detect' list in index.md and
quickstart.md — hooks/HOC/provider detected since v1.1.0. Update
limitations.md to clarify detected-but-not-auto-migrated status.

Fix 3: Add 'version' input row to GitHub Actions options table and add
version-pinning example.

Fix 4: Set Start Here sidebar section collapsed: false — new users must
see the entry point without having to manually open it.

Fix 5/7: Move Blog to bottom of sidebar, Trust just above it — docs
content should dominate prime sidebar real estate.

Fix 6: Move Concepts before Tutorials — users need conceptual grounding
before tutorial steps make sense.

Fix 8: Replace incomprehensible scan exit behavior prose with a clear
exit code table matching the pattern used by validate.md.

Fix 9: Add Type column to configuration fields table — users need to
know whether minFileCount is a number, string, or boolean.

Fix 10: Add Next link to completion.md — navigation was dead-ending.

Fix 11: Standardize all quickstart commands to npx flaglint@latest.

Fix 12: Bulk-fix 29 pages with wrong edit-this-page links pointing to
flaglint/flaglint repo — corrected to flaglint/flaglint.dev.

Signed-off-by: Krishan Kant Sharma <krishansharma0327@gmail.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying flaglint with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5a4cb25
Status: ✅  Deploy successful!
Preview URL: https://3c0cc808.flaglint.pages.dev
Branch Preview URL: https://docs-quick-wins.flaglint.pages.dev

View logs

@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 8d02a027-9912-43ae-bdc2-67b72aef3f8c

📥 Commits

Reviewing files that changed from the base of the PR and between b147870 and 5a4cb25.

📒 Files selected for processing (36)
  • astro.config.mjs
  • src/content/docs/docs/cli/audit.md
  • src/content/docs/docs/cli/completion.md
  • src/content/docs/docs/cli/configuration.md
  • src/content/docs/docs/cli/exit-codes.md
  • src/content/docs/docs/cli/migrate.md
  • src/content/docs/docs/cli/report-formats.md
  • src/content/docs/docs/cli/scan.md
  • src/content/docs/docs/cli/validate.md
  • src/content/docs/docs/concepts/how-flaglint-works.md
  • src/content/docs/docs/concepts/openfeature-boundary.md
  • src/content/docs/docs/concepts/safety-model.md
  • src/content/docs/docs/concepts/source-level-debt-signals.md
  • src/content/docs/docs/enterprise-demo.md
  • src/content/docs/docs/guides/express.md
  • src/content/docs/docs/guides/manual-review-patterns.md
  • src/content/docs/docs/guides/monorepos.md
  • src/content/docs/docs/guides/nestjs.md
  • src/content/docs/docs/guides/troubleshooting.md
  • src/content/docs/docs/index.md
  • src/content/docs/docs/integrations/github-actions.md
  • src/content/docs/docs/integrations/openfeature-provider.md
  • src/content/docs/docs/integrations/opentelemetry.md
  • src/content/docs/docs/product-contract.md
  • src/content/docs/docs/quickstart.md
  • src/content/docs/docs/reference/changelog.md
  • src/content/docs/docs/reference/exit-codes.md
  • src/content/docs/docs/reference/faq.md
  • src/content/docs/docs/reference/limitations.md
  • src/content/docs/docs/reference/supported-scope.md
  • src/content/docs/docs/trust/security.md
  • src/content/docs/docs/tutorials/add-openfeature-provider.md
  • src/content/docs/docs/tutorials/enforce-in-github-actions.md
  • src/content/docs/docs/tutorials/migrate-a-node-service.md
  • src/content/docs/docs/tutorials/shared-client-architecture.md
  • src/content/docs/docs/why-flaglint.md

📝 Walkthrough

Walkthrough

This PR reorders the Starlight sidebar in astro.config.mjs, migrates all "Edit this page on GitHub" links from flaglint/flaglint docs-src paths to flaglint/flaglint.dev src/content paths across nearly every docs page, rewrites CLI exit-code/configuration/report-format documentation, removes a duplicate reference exit-codes page, expands troubleshooting and conceptual guides, and clarifies auto-migration scope boundaries.

Changes

Sidebar Navigation

Layer / File(s) Summary
Sidebar reordering
astro.config.mjs
Moves "Start Here" near the top, swaps CLI/Tutorials section order, and adds a "Blog" section near the end.

Estimated code review effort: 2 (Simple) | ~15 minutes

Documentation Content and Link Migration

Layer / File(s) Summary
Exit-codes documentation rewrite
src/content/docs/docs/cli/exit-codes.md, src/content/docs/docs/cli/scan.md, src/content/docs/docs/reference/exit-codes.md
Rewrites the CLI exit-codes contract with stability guarantees, per-command notes, and a CI YAML example; updates scan.md's exit codes section; removes the duplicate reference exit-codes page.
CLI configuration and bindings docs
src/content/docs/docs/cli/configuration.md
Adds detailed field types/defaults and a new "OpenFeature Client Bindings" section.
Report formats rewrite
src/content/docs/docs/cli/report-formats.md
Adds a format comparison table, usage guidance, and GitHub Code Scanning integration examples.
Import-verified detection concepts
src/content/docs/docs/concepts/how-flaglint-works.md
Reorganizes explanation into a phased Analysis Pipeline (Collect/Analyze/Report) with a concrete example.
Auto-migration scope clarifications
src/content/docs/docs/index.md, src/content/docs/docs/quickstart.md, src/content/docs/docs/reference/limitations.md
Clarifies exclusion of browser/non-Node SDKs and React manual-review-only detection; updates CLI examples to npx flaglint@latest.
Troubleshooting guide expansion
src/content/docs/docs/guides/troubleshooting.md
Adds sections on config discovery, React non-migration, zero-transform runs, skipped files, and CI validation failures.
GitHub Actions version option
src/content/docs/docs/integrations/github-actions.md
Adds a version input and pinning example.
Edit link migration
src/content/docs/docs/cli/*, src/content/docs/docs/concepts/*, src/content/docs/docs/guides/*, src/content/docs/docs/integrations/*, src/content/docs/docs/reference/*, src/content/docs/docs/trust/security.md, src/content/docs/docs/tutorials/*, src/content/docs/docs/enterprise-demo.md, src/content/docs/docs/product-contract.md, src/content/docs/docs/why-flaglint.md
Updates GitHub edit links across most docs pages to the new repository path; adds a "Next" navigation link in completion.md.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Possibly related PRs

  • flaglint/flaglint.dev#3: Both PRs update the docs site navigation and shared CLI documentation pages—most directly astro.config.mjs sidebar config and overlapping files like src/content/docs/docs/cli/completion.md and src/content/docs/docs/cli/configuration.md.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/quick-wins

Comment @coderabbitai help to get the list of available commands.

@flaglint flaglint merged commit 2048698 into main Jul 1, 2026
2 of 4 checks passed
@flaglint flaglint deleted the docs/quick-wins branch July 1, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants